﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace KNN
{
    class Program
    {
       
        static void Main(string[] args)
        {
            KNN nowy = new KNN("C:\\plik.txt");
            int Ilosc = 1;
            double S = 0;
            for (int i = 0; i < Ilosc; i++)
            {
                S += nowy.Create(41, 9);
                Console.WriteLine("iteracja:"+i + " = " + S);
            }
            Console.WriteLine("KNN obliczyl cos takiego:" + S / Ilosc);
            Console.WriteLine("Obszar:" + Convert.ToString(nowy.K));
            Console.WriteLine("ilosc testowych:" + Convert.ToString(nowy.QuantityOfTester));
            Console.WriteLine("ilosc uczacych:" + Convert.ToString(nowy.QuantityOfTrainer));

            Console.WriteLine("koniec");
            Console.ReadKey();
        }
    }
}